package com.bigtalk.pattern.structure.bridge;

import java.util.ArrayList;
import java.util.List;

public abstract class Brand {
	List<Function> functions;

	public void addFunction(Function func) {
		if( functions == null ){
			functions = new ArrayList<Function>();
		}
		functions.add(func);
	}

	public void work() {
		if( functions == null ){
			functions = new ArrayList<Function>();
		}
		for(Function func : functions ){
			func.work();
		}
	}
}
